package com.ymm.platform.api.utils;

import lombok.Getter;

/**
 * @Description: 统一返回结果状态信息类
 * @Author: Xuecheng Li
 * @CreateTime: 2022-08-03  10:10
 * @Version: 1.0
 */
@Getter
public enum ResultCodeEnum {

    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    PARAM_ERROR( 202, "输入参数不正确"),
    SERVICE_ERROR(203, "系统繁忙，请稍后重试！"),

    CODE_ERROR(204, "验证码错误"),
    PASSWORD_ERROR(205, "密码错误"),

    PARAM_FORMAT_ERROR(206, "参数格式错误"),
    PARAM_NULL_ERROR(207, "参数存在空值"),

    SYSTEM_ERROR(208, "系统执行错误，请重试"),

    NO_SUCH_DATA(209, "数据库没有该数据"),

    IN_PARAM_ERROR(210, "入参错误"),

    CANCEL_PERMISSION_DENIED(211, "申诉已取消或已处理，无法取消"),

    HANDLE_PERMISSION_DENIED(212, "申诉已取消或已处理，无法处理")
    ;

    private Integer code;
    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
